package top.yudoge.dogeeditor.llm.rewrite

import org.springframework.stereotype.Service

@Service
@Deprecated(message = "在SQL场景尽量不要使用这个，会导致逻辑和用户需求偏差过大")
class UserQueryRewriteChainNode : TaskChainNode {

    override fun process(ctx: ChainContext) {
        var userTask = ctx.query.userTask
        var loadPrompt = loadPrompt(
            "/user_query_rewrite.template", mapOf(
                "user_task" to userTask,
                "related_knowledge" to ""
            )
        )

        var chat = ctx.chatModel.chat(loadPrompt)
        println(chat)
    }

}